<?php
declare(strict_types=1);
namespace cms\sms\service;

use cms\sms\model\PlatformModel;
use Hyperf\Di\Annotation\Inject;

class PlatformService extends CommonService
{
    /**
     * @Inject()
     * @var PlatformModel
     */
    public PlatformModel $model;

    public function setSenderConfigAttribute($value)
    {
        $this->attributes['sender_config'] = json_encode($value);
    }

    public function getSenderConfigAttribute($value)
    {
        return json_decode($value, true);
    }

}